package com.zdd.ehe.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @version 1.0.0
 * @title: WebMvcConfig
 * @author: HFLy
 * @description:
 * @date: 21/9/2022 下午8:09
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
       registry.addResourceHandler("/disease_image/**").addResourceLocations("classes/disease_image/");
    }
}
